package com.ssm.opa.common.base.constants;

/**
 * <p/>
 * Copyright: Copyright (c) 2017/9/28
 * <p/>
 * Company: 途牛科技有限公司华东分公司
 * <p/>
 *
 * @author lubin2@tuniu.com
 * @version 1.0.0
 * @project gtb-parent
 */
public class ErrorCode {

	/*系统状态码->9开头*/
	public static final int SUCCESS = 995000;//成功

	/*系统错误码->8开头*/
	public static final int JSON_PARSE_EXCEPTION = 895000;//json解析异常
	public static final int SQL_EXECUTE_ERROR = 895001;//SQL执行错误
	public static final int UNMAPPED_TIME_PATTERN = 895002;//日期格式化错误
	public static final int HTTP_CLIENT_EXCEPTION = 895003;//HTTP请求错误
	public static final int ACQUIRE_SERVER_IP_ERROR = 895004;//获取服务器IP地址失败
	public static final int SYSTEM_ERROR = 895005;//未匹配错误的缺省错误
	public static final int SYSTEM_TOO_BUSY = 895006;//服务器繁忙
	public static final int INTERNAL_ERROR_EXCEPTION = 895007;//内部错误
	public static final int NO_PERMISSION = 895008;//限流

	/*业务错误码->7开头*/
	public static final int WRONG_PARAMETER = 795000;//请求格式错误
	public static final int METHOD_NOT_SUPPORTED = 795001;//方法不支持
	public static final int FORMAT_ERROR = 795002;//入参错误
	public static final int AUTHORITY_ERROR = 795003;//没有权限
	public static final int REDIS_ERROR = 795004;//redis 访问异常
	public static final int MESSAGE_EXCEPTION = 795005;//报文不一致
	public static final int NO_LOGIN_INFO = 795006;//没有登录信息
	public static final int KEY_MISS_EXCEPTION = 795007;//密钥缺失
	public static final int RESOURCE_NOT_FOUND = 795008;//未查询到资源

}
